package com.kuang.springcloud.service;

import com.kuang.springcloud.dao.DeptMapper;
import com.kuang.srpingcloud.api.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;
    @Override
    public boolean add(Dept dept) {
        return deptMapper.add(dept);
    }

    @Override
    public Dept queryByID(Long id) {
        return deptMapper.queryByID(id);
    }

    @Override
    public List<Dept> queryAll() {
        return deptMapper.queryAll();
    }
}
